<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" method="post">

        <div class="layui-form-item">
            <label class="layui-form-label">上级id</label>
            <div class="layui-input-block">
                <input type="text" name="pid" class="layui-input"  placeholder="请输入上级id" value="0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户账号</label>
            <div class="layui-input-block">
                <input type="text" name="account" class="layui-input"  placeholder="请输入用户账号" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">真实姓名</label>
            <div class="layui-input-block">
                <input type="text" name="real_name" class="layui-input"  placeholder="请输入真实姓名" value="">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-inline">
                <select name="sex"  class="layui-select">
                    <option value="">- 请选择 -</option>
                    {foreach $getSexList as $k=>$v}
                    <option value="{$k}" >{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">生日</label>
            <div class="layui-input-block">
                <input type="text" name="birthday" class="layui-input"  placeholder="请输入生日" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">支付密码</label>
            <div class="layui-input-block">
                <input type="text" name="pay_password" class="layui-input"  placeholder="请输入支付密码" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">昵称</label>
            <div class="layui-input-block">
                <input type="text" name="nickname" class="layui-input"  placeholder="请输入昵称" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <input type="text" name="phone" class="layui-input"  placeholder="请输入手机号" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">用户头像</label>
            <div class="layui-input-block layuimini-upload">
                <input name="avatar" class="layui-input layui-col-xs6"   placeholder="请上传用户头像" value="">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="avatar" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_avatar" data-upload-select="avatar" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">邀请码</label>
            <div class="layui-input-block">
                <input type="text" name="invite_code" class="layui-input"  placeholder="请输入邀请码" value="0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户余额</label>
            <div class="layui-input-block">
                <input type="text" name="surplus_price" class="layui-input"  placeholder="请输入用户余额" value="0.00">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">佣金金额</label>
            <div class="layui-input-block">
                <input type="text" name="commission_price" class="layui-input"  placeholder="请输入佣金金额" value="0.00">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">成长值</label>
            <div class="layui-input-block">
                <input type="text" name="grow_up" class="layui-input"  placeholder="请输入成长值" value="0">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">积分</label>
            <div class="layui-input-block">
                <input type="text" name="integral" class="layui-input"  placeholder="请输入积分" value="0">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">会员等级</label>
            <div class="layui-input-inline">
                <select name="member_id"  class="layui-select">
                    <option value="">- 请选择 -</option>
                    {foreach $getMemberList as $k=>$v}
                    <option value="{$k}" >{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">是否冻结会员</label>
            <div class="layui-input-block">
                <input type="checkbox" name="is_disable" lay-skin="switch" lay-text="正常|冻结" checked="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">用户购买次数</label>
            <div class="layui-input-block">
                <input type="text" name="pay_count" class="layui-input"  placeholder="请输入用户购买次数" value="0">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">经度</label>
            <div class="layui-input-block">
                <input type="text" name="longitude" class="layui-input"  placeholder="请输入经度" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">纬度</label>
            <div class="layui-input-block">
                <input type="text" name="latitude" class="layui-input"  placeholder="请输入纬度" value="">
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>